package pe.unmsm.dibu;

import android.content.Context;
import android.graphics.Canvas;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

public class DrawView  extends View implements OnTouchListener{
	
	public DrawView(Context context){
      super(context);
	setOnTouchListener(this);
	}
	
	@Override
	public void onDraw(Canvas canvas){
		
	}
	
	@Override
	public boolean onTouch(View view,MotionEvent event){
		final int x = (int)event.getRawX();
		final int y = (int)event.getRawY();
		switch (event.getAction()& MotionEvent.ACTION_MASK){
		case MotionEvent.ACTION_DOWN:
		break;
		case MotionEvent.ACTION_UP:
		break;
		case MotionEvent.ACTION_POINTER_DOWN:
		break;
		case MotionEvent.ACTION_POINTER_UP:
		break;
		case MotionEvent.ACTION_MOVE:
		break;
		}
		return true;
	}
}
